package com.shareyi.simpleserver.servlet;

import java.io.IOException;
import java.util.Map;

import com.shareyi.simpleserver.core.HttpRequest;
import com.shareyi.simpleserver.core.HttpResponse;

public abstract interface  Servlet {

	  public abstract void init(Map<String,String> servletConfig)
			    throws ServletException;

			  public abstract Map<String,String> getServletConfig();

			  public abstract void service(HttpRequest httpRequest,HttpResponse httpResponse)
			    throws ServletException, IOException;

			  public abstract String getServletInfo();

			  public abstract void destroy();
}
